<style>.categoryBox,.titleBox{ display:none;}
.post_status{ display:none;}</style>
<tr class="blocktitle">
    <td colspan="2">-- 订单信息 --</td>
  </tr>
<tr>
  <td colspan="2" style="padding-right:8px!important;">
        <table class="table table-bordered">
        	<tr>
                <td colspan="4" align="center">
                    基本信息
                </td>
            </tr>
            <tr>
                <th width="14.6%">订单号</th>
                <td>
                    ($parameter_default[post_title])
                </td>
                <th width="14.6%">订单状态</th>
                <td class="status-text-yellow">
                    ($parameter_default[orderstatus])
                </td>
            </tr>
            <tr>
				<th width="14.6%">店铺名</th>
                <td>
                    <a href="($shopinfo[shop_url])" target="_blank">($shopinfo[shop_name])</a>
                </td>
                <th width="14.6%">会员名称</th>
                <td>
                    ($parameter_default[user_name])
                </td>
            </tr>
            <tr>
				<th width="14.6%">支付金额</th>
                <td class="status-text-red">
                    ￥{$parameter[price]}
                </td>
                <th width="14.6%">支付方式</th>
                <td>
                    ($parameter[payname])
                </td>
            </tr>
            <tr>
				<th width="14.6%">配送方式</th>
                <td>
                    ($parameter[psname]) / ($parameter[psfee])元
                </td>
                <th><font color="red">*</font>运单号</th>
                <td>
                    <input class="form-control" type="text" name="parameter[invoice_no]" value="($parameter[invoice_no])" placeholder="请输入运单号">
                </td>
                
            </tr>
            <tr>
                <th>付款时间</th>
                <td>
                    ($parameter_default[create_time])
                </td>
                <th>发货时间</th>
                <td>
                    ($parameter_default[published_time])
                </td>
            </tr>
			<tr>
				<th>订单时间</th>
                <td>
                    ($parameter_default[create_time])
                </td>
			</tr>
            <tr id="postdesc">
                <th>订单备注</th>
                <td colspan="3">($parameter[postdesc])
                <script>
                var postdesc = "($parameter[postdesc])";
                if(postdesc == "")$("#postdesc").hide();
                </script>
                </td>
            </tr>
        </table>
    <table class="table table-bordered">
        	<tr>
                <td colspan="4" align="center">
                    收货人信息
                </td>
            </tr>
        	<tr>
                <th width="14.6%">收货人姓名</th>
                <td>
                    ($parameter[contact_name])
                </td>
                <th width="14.6%">手机号码(固定电话)	</th>
                <td>
                    ($parameter[contact_tel])
                </td>
            </tr>
            <tr>
                <th>地址</th>
                <td colspan="3">
                    ($parameter[contact_address])
                </td>
            </tr>
      </table>
      <table class="table table-bordered">
       	  <tr>
              <td colspan="4" align="center">
                  总费用
              </td>
          </tr>
       	  <tr>
              <th width="14.6%" rowspan="3">总费用</th>
              <td colspan="3" align="right">
                  商品总价：<b>￥{$parameter[goodsprice]}</b> - 订单折扣：<b>￥{$parameter[discountprice]}</b> - 使用优惠券：<b>￥{$parameter[couponfee]}</b>
                  <br />
                  = 订单总金额：<label style="color:red; font-size:16px;">￥{$parameter[orderprice]}</label>
              </td>
          </tr>
        	<tr>
        	  <td colspan="3" align="right">
              	  订单总金额：<b>￥{$parameter[orderprice]}</b> - 积分抵扣金额：<b>￥{$parameter[dkprice]}</b> + 配置费用：<b>￥{$parameter[psfee]}</b>
                  <br />
                  = 应付款金额：<label style="color:red; font-size:16px;">￥{$parameter[price]}</label>
              </td>
      	  </tr>
        	<tr id="integralprice" style="display:none;">
        	  <td colspan="3" align="right">
                    <p>使用积分兑换：<label style="color:red; font-size:16px;">{$parameter[integralprice]}积分</label><p>
                    <script>
                    var integralprice = "{$parameter_default[integralok]}";
                    if(integralprice > 0){
                        $('#integralprice').show();
                    }
                    </script>
              </td>
      	  </tr>
      </table>
    </td>
</tr>
<tr class="blocktitle">
    <td colspan="2">-- 订单商品 --</td>
  </tr>
<tr>
    <td colspan="2" style="padding-right:8px!important;">
    <style>.ordergodos{border: 1px solid #006fc4;}.order_table td{ border:1px solid #ccc; padding:10px;}.order_table td a:hover{ text-decoration:none;}
    .order_table td p{ margin-bottom:0;}</style>
    <div class="ordergodos">{$ordergoodshtml}</div></td>
</tr>
<tr class="blocktitle">
    <td colspan="2">-- 订单操作 --</td>
  </tr>
<tr>
    <th>订单状态</th>
    <td>
        <span class="status-text-yellow">($parameter_default[orderstatushtml])</span>
    </td>
</tr>
<tr>
    <th>($parameter_default[opstatus])</th>
    <td>
    {if $parameter_default[orderstatus] == "5"}
    	<font color="red">已取消</font>
    {elseif $parameter_default[orderstatus] == "3"}
    	<font color="red">已完成</font>
    {elseif $parameter_default[orderstatus] == "2"}
    	<a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=3&opname=确认收货" class="btn btn-success js-ajax-dialog-btn" data-msg="您确定要确认收货吗？" data-ok="" data-cacel="取消">确认收货</a>
        <a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=1&opname=取消发货" class="btn btn-danger js-ajax-dialog-btn" data-msg="您确定要取消发货吗？" data-ok="" data-cacel="取消">取消发货</a>
    {elseif $parameter_default[orderstatus] == "1"}
    	<a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=2&opname=确认发货" class="btn btn-warning js-ajax-dialog-btn" data-msg="您确定要发货吗？" data-ok="" data-cacel="取消">确认发货</a>
        <a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=0&opname=取消付款" class="btn btn-danger js-ajax-dialog-btn" data-msg="您确定要取消付款吗？" data-ok="" data-cacel="取消">取消付款</a>
    {else}
    	<a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=1&opname=确认付款" class="btn btn-primary js-ajax-dialog-btn" data-msg="您确定要付款吗？" data-ok="" data-cacel="取消">确认付款</a>
        <a href="/portal/admin_ajax/index.html?ajaxid=($dataid)&ajaxname=orderstatus&status=5&opname=取消付款" class="btn btn-danger js-ajax-dialog-btn" data-msg="您确定要取消订单吗？" data-ok="" data-cacel="取消">取消订单</a>
    {/if}
    </td>
</tr>